package com.example.pattern.state;

/**
 * 应用上下文类
 *
 * @author FM_南风
 * @date 2024/7/5
 */
public class StateContext {
    private State state;

    public void setState(State state) {
        this.state = state;
    }

    public void request() {
        state.handle();
    }
}
